package com.example.jianzhioffer;

import java.util.Scanner;

/**
 * Created by Quincy on 2018/10/12.
 */
public class JinZhi {

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int n = 0;
        for (int i = 0; i < s.length(); i++)
            n = n*2 + s.charAt(i) - '0';
        System.out.println("转换前的十进制" + n);
        String s1 = "";
        while (true){
            if (n==0) break;
            s1 = n%5 + s1;
            n/=5;
        }
        System.out.println("转化后的数字：" + s1);
    }
}
